<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .ball-running {
            width: 200px;
            height: 200px;
            position: relative;
            background-color: red;
            animation: run-around 4s infinite;
        }

        @keyframes run-around {
            0% {
                top: 0;
                left: 0;
            }

            25% {
                top: 0;
                left: 200px;
            }

            50% {
                top: 200px;
                left: 200px;
            }

            75% {
                top: 200px;
                left: 0;
            }
        }
    </style>
</head>

<body>
    <div class="ball-running"></div>
    
</body>

</html>